//
//  MJPhotoBrowser.h
//
//  Created by mj on 13-3-4.
//  Copyright (c) 2013年 itcast. All rights reserved.

#import <UIKit/UIKit.h>


@class MJPhotoBrowser;
@protocol MJPhotoBrowserDelegate <NSObject>
- (void) changeScene:(NSInteger)scene;
- (void) sendTextContent;
- (void) sendImageContent:(UIImage *)image andImageDescription:(NSString*)description;
- (void) sendLinkContent;
- (void) sendMusicContent;
- (void) sendVideoContent;
- (void) sendAppContent;
- (void) sendNonGifContent;
- (void) sendGifContent:(NSArray *)array andFilePath:(NSString *)filePath;
- (void) sendFileContent;
- (void)photoBrowser:(MJPhotoBrowser *)photoBrowser didChangedToPageAtIndex:(NSUInteger)index;
- (void) sendImageContent:(UIImage *)image;
@end

@interface MJPhotoBrowser : TRBaseUIViewController <UIScrollViewDelegate>
// 代理
@property (nonatomic, weak) id<MJPhotoBrowserDelegate> delegate;
// 所有的图片对象
@property (nonatomic, strong) NSArray *photos;
// 当前展示的图片索引
@property (nonatomic, assign) NSUInteger currentPhotoIndex;
//用户自定义的数据
@property(nonatomic,strong)id userDefaultValue;
// 显示
- (void)show;
@end

